#include <stdio.h>
#include "dlist.h"

void testAtFront(dNode_t *list) {

    //test insertAtFront
    for(int i=1;i<10;i++) {
        insertAtFront(&list, i);
    }
    printList(list);
    reversePrintList(list);
}

void testAtTail(dNode_t *list) {

    //test insertAtFront
    for(int i=1;i<10;i++) {
        insertAtTail(&list, i);
    }
    printList(list);
    reversePrintList(list);
}


int main() {
    dNode_t *list=NULL;

    testAtFront(list);
    testAtTail(list);

}